//
//  LSZReportTypeManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/30.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZReportTypeManager.h"

@implementation LSZReportTypeManager
-(id)initWithReportType :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        self.arrayName = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * mutArray = [[NSMutableArray alloc]init];
        NSMutableArray * mutArrayName = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in arrayData) {
            LSZReportTypeMg * mg = [[LSZReportTypeMg alloc]init];
            mg.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            mg.name = NullStringjudgment(NSStr(diction[@"name"]));
            [mutArray addObject:mg];
            [mutArrayName addObject:mg.name];
        }
        self.arrayData = mutArray;
        self.arrayName = mutArrayName;
    }
    return self;
}
@end
@implementation LSZReportTypeMg
@end
